import request from '@/utils/sendRequest';

//按组查询过滤规则
export function getFilterRulerList(groupId) {
  return request({
    url: `/v1/app/filterRuler/${groupId}`,
    method: 'get',
  });
}

//新增过滤规则
export function addFilterRuler(params = {}) {
  return request({
    url: `/v1/app/addFilterRuler`,
    method: 'post',
    data: params,
  });
}

//删除过滤规则
export function deleteFilterRulerList(filterRulerId) {
  return request({
    url: `/v1/app/filterRuler/${filterRulerId}`,
    method: 'delete',
  });
}

//编辑过滤规则
export function editFilterRulerList(params = {}) {
  return request({
    url: `/v1/app/modifyFilterRuler`,
    method: 'put',
    data: params,
  });
}
